import { ACCESS_ENUM } from '@/access/accessEnum'
import type { RouteRecordRaw } from 'vue-router'

export const devRoutes : RouteRecordRaw[] = [
    {
        path : '/live/test',
        component: () => import('@/views/livebroadcast/LiveBroadcast.vue'),
        name : '直播测试',
        meta : {}
    },
    {
        path : '/video',
        name : '视频播放器',
        component : () => import('@/components/VideoPlayer/VideoPlayer.vue'), 
    },
    {
        path: '/rating',
        name: '排名',
        component: () => import('@/views/RankingList.vue'),
    },
    {
        path: '/contest/:id([\\d-\\w]+)',
        name: '比赛详情',
        component: () => import('@/views/contest/ContestView.vue'),
    },
    {
        path: '/debug-editor',
        name: '可调试编辑器',
        component: () => import('@/components/DebugableMonacoEditor/DebugableMonacoEditor.vue')
    },
    {
        path : '/test',
        name : "测试目录",
        component : () => import("@/views/TestContent.vue")
    },{
        path : "/moments",
        name : "朋友圈",
        component : () => import("@/views/moments/Moments.vue")
    },{
        path: "/3d",
        name: "3D",
        component: () => import("@/views/3d/HumanModel.vue"),
    }
].map(route => ({
    ...route,
    meta : {
        ...route?.meta,
        access: ACCESS_ENUM.ADMIN,
        hideInMenu: true
    }
}))